package com.hjq.fcloud.ktx

import android.view.View

/**
 * @author : fenghailin
 * Createtime: 2023/4/26
 * 包名：com.bj.subway.ktx
 * 说明：
 */
object ViewKtx {

    fun View.setVisibility(show: Boolean){
        if(show){
            this.visibility = View.VISIBLE
        }else{
            this.visibility = View.GONE
        }
    }

    fun View.setVisibility2(show: Boolean){
        if(show){
            this.visibility = View.VISIBLE
        }else{
            this.visibility = View.INVISIBLE
        }
    }

}